package com.ktwlsoft.archivemanage.domain.business.businessService;

import com.ktwlsoft.archivemanage.domain.business.repositoryService.businessInspect.BusinessInspectRepositoryService;
import com.ktwlsoft.archivemanage.payload.view.GuidanceVariation;
import com.ktwlsoft.archivemanage.payload.view.MarkLostResponse;
import com.ktwlsoft.archivemanage.payload.view.UnitMarkResponse;
import org.springframework.stereotype.Service;

import java.time.Year;
import java.util.List;

@Service
public class GuidanceProfileService {

    private final BusinessInspectRepositoryService businessInspectRepositoryService;

    public GuidanceProfileService(BusinessInspectRepositoryService businessInspectRepositoryService) {
        this.businessInspectRepositoryService = businessInspectRepositoryService;
    }

    public List<MarkLostResponse> markLostRanking(Year year, String guidNum) {
        return businessInspectRepositoryService.getMarkLostRanking(year, guidNum);
    }

    public List<UnitMarkResponse> unitMarkReanking(Year year) {
        return businessInspectRepositoryService.getUnitMarkReanking(year);
    }

    public List<GuidanceVariation> getGuidanceVariationOfYear() {
        return businessInspectRepositoryService.getGuidanceVariationOfYear();
    }
}
